<?php
defined('IN_TS') or die('Access Denied.');
	$title = '秀店 - 淘宝店铺 - 淘店铺';
	$arrNewGroup = $new['shop']->getNewGroup(10);
	
foreach($arrNewGroup as $key=>$item){
	$arrNewGroup[$key]['user'] = aac('user',$db)->getSimpleUser($item['userid']);
	$arrNewGroup[$key]['TopTopci'] =  $db->fetch_all_assoc("select a.topicid,a.groupid,a.title,a.istop,a.isphoto,a.uptime,b.indeximgurl from ".dbprefix."group_topics AS a LEFT JOIN ".dbprefix."thumb_topic_topic AS b ON a.topicid = b.topicid where a.groupid='".$item['groupid']."' order by a.uptime desc limit 7");
}
	
	include template("index");